<div id='table_wrap'>
	<div class="page_title">“拔尖计划”课程开设表</div>
	<div id="form_wrap">
	<form id="table_form" name="course_form"
		action="<?php echo urlToAction("course","requestcourse"); ?>">
		
		<div id="line1" class="line clearfix">
			<div id='department' style="float:left;margin-left:5px"><div class="field_name" >院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;系：</div>
				<select name='department' class='select_style' id="department_select">
				<?php foreach(getInstitutes() as $key => $value):?>
				<option value='<?php echo $key;?>' <?php if($key==$_SESSION['userinfo']['department']) echo "selected='selected'"?> ><?php echo $value;?></option>
				<?php endforeach;?>
				</select>
			</div>
			<div id="courseType" style="float:left;margin-left:50px">
				<div class="field_name">类&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型：</div>
				<select name='courseType' class='select_style' id="course_type_select" disabled>
				<option value='1' selected="selected">课程</option>
				<option value='2'>讲座</option>
				</select>
			</div>
		</div>
		
		<div id="line2" class="line clearfix">
			<div id="courseName" style="float:left;margin-left:5px"><div class="field_name">课程名称：</div><input type="text" name="courseName"/></div>
			<div id="teacherName" style="float:left;margin-left:50px"><div class="field_name">教师姓名：</div><input type="text" name="teacherName"/></div>
		</div>
		
		<div id="line3" class="line clearfix">
			<div id="techerType" style="float:left;margin-left:5px"><div class="field_name">教师类型：</div>
				<select name='teacherType' class='select_style' id="teacher_type_select"
							onchange='teacherTypeChanged()'>
				<?php foreach(getTeacherTypes() as $key => $value):?>
				<option value='<?php echo $key;?>' ><?php echo $value;?></option>
				<?php endforeach;?>
				</select>
			</div>
			<div id="credential" style="float:left;margin-left:54px">
				<div class="field_name" id="cred_field">工资号：
				</div>
				<input type="text" name="credential"/>
			</div>
		</div>
		
		<div id="line4" class="line clearfix">
			<div id="jobTitle" style="float:left;margin-left:5px"><div class="field_name">职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称：</div>
			<select name='jobTitle' class='select_style' id="job_title_select"
							onchange=''>
			<?php foreach(getJobTitles() as $key => $value):?>
				<option value='<?php echo $key;?>' ><?php echo $value;?></option>
			<?php endforeach;?>
			</select>
			
			</div>
			<div id="organization" style="float:left;margin-left:54px"><div class="field_name">所属单位：</div><input type="text" name="organization"/></div>
			
		</div>
		
		<div id="line5" class="line clearfix">
			<div id="courseTime" style="float:left;margin-left:5px"><div class="field_name">开课时间：</div>
			<input type="text" name="courseBegin" size="20" value="<?php echo date("Y-m-d");?>" class="hasdatepicker" id="begin_date" class="hasdatepicker">
			</div>
			
			<div style="float:left;margin-left:50px"><div class="field_name">至：</div>
				<input type="text" name="courseEnd" size="20" value="<?php echo date("Y-m-d");?>" id="end_date"  class="hasdatepicker">
			</div>
			
		</div>
		
		<div id="line6" class="line clearfix">
			<div id="weeks" style="float:left;margin-left:5px"><div class="field_name">周&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;数：</div>
				<input id="weeks_input" type="text" value="0" />
			</div>
			<div id="unit" style="float:left;margin-left:50px"><div class="field_name">周&nbsp;课&nbsp;时：</div>
				<input id="unit_input"type="text" name="unit" onkeyup="value=value.replace(/[^\d]/g,'') " onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/ g,''))"/>
			</div>
		</div>
		
		<div id="line7" class="line clearfix">
			<div id="units" style="float:left;margin-left:5px"><div class="field_name">总&nbsp;课&nbsp;时：</div>
				<input id="units_input"type="text" name="units" disabled/>
			</div>
			<div id="salay_standard" style="float:left;margin-left:50px"><div class="field_name">课酬标准：</div>
				<input type="text" name="salaryStandard" id="salary_standard_input" onkeyup="value=value.replace(/[^\d]/g,'') " onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/ g,''))" />
				<select id="quantity_select" name="salaryFix" onchange="quantityChanged()">
					<option value="0" selected="selected">元/学时</option>
					<option value="1">元/月</option>
				</select>
				<select  id="all_quantity" style="display:none">
					<option value="0">元/学时</option>
					<option value="1">元/月</option>
					<option value="2">美元/学时</option>
					<option value="3">美元/月</option>
					<option value="4">元/场</option>
					<option value="5">美元/场</option>
				</select>
			</div>
			
		</div>
		<div id="line8" class="line clearfix">
			<div id="salary" style="float:left;margin-left:5px"><div class="field_name">课&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;酬：</div>
				<input type="text" name="salary" onkeyup="value=value.replace(/[^\d]/g,'') " onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/ g,''))"/><div id="salary_unit">元</div>
			</div> 
			<div id="time" style="float:left;margin-left:50px"><div class="field_name">填表日期：</div>
				<input type="text" name="time" value="<?php echo date("Y-m-d");?>" class="hasdatepicker"/>
			</div>
		</div>
		<div id="line7" class="line clearfix">
			<div id="activityContent" style="float:left;margin-left:5px"><div class="field_name">课程和主讲人介绍：</div>
				<textarea id="content_area" name="summary" />
			</div>
		</div>
		<div class="operator clearfix">
			<div class="form_post button">提交</div>
		</div>
		
	</form>
	</div>
</div>
